package com.yc.mapper;

import com.yc.entities.BloodSugarDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 科室表 Mapper 接口
 * </p>
 *
 * @author kuakha
 * @since 2021-04-07
 */
public interface BloodSugarDepartmentMapper extends BaseMapper<BloodSugarDepartment> {

    List<BloodSugarDepartment> getDepartmentByPerId( @Param("perId") Integer perId,@Param("deanId") Integer deanId,@Param("currentLoginUserId") Integer currentLoginUserId);

    List<BloodSugarDepartment> getDepartmentByPerIdAndDocId( @Param("perId") String perId,@Param("deanId") String deanId,@Param("doctorId") String doctorId);

    int saveDepartment(BloodSugarDepartment bloodSugarDepartment);
}
